package com.kuang.dao;

import com.kuang.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserMapper {

    int addUser (User user);

    int deleteUserById (@Param("userId") int id);

    User updateUserByName (@Param("username") String username);

    User updateUserPassword(Map<String,Object> map);

    User queryById(@Param("userId") int id);

    List<User> queryAllUser();

    User queryUserByName(@Param("username") String username,@Param("password") String password);
}
